package com.lvhx.springboot.base;

public class DefaultUnitOfWorkFactory implements UnitOfWorkFactory {
//    private final TransactionManager transactionManager;

//    public DefaultUnitOfWorkFactory() {
//        this(null);
//    }

//    public DefaultUnitOfWorkFactory(TransactionManager transactionManager) {
//        this.transactionManager = transactionManager;
//    }

    @Override
    public UnitOfWork createUnitOfWork(TransactionManager transactionManager) {
        return DefaultUnitOfWork.startAndGet(transactionManager);
    }
}
